<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:t="http://myfaces.apache.org/tomahawk"
                xmlns:ui="http://java.sun.com/jsf/facelets">

    <t:div id="resultsTitle">
        <h:outputText value="#{msgs['results.title']}"/>
    </t:div>
    <t:div id="resultsMeta">
        <h:outputText id="numResults" value="#{retrieveConcepts.resultsSize} "  />
        <h:outputText value="#{msgs['results.metaName']} "  />
        <h:outputText id="timeResults" value="#{retrieveConcepts.retrievalTime} "  />
        <h:outputText  value="#{msgs['results.metaUnit']}"  />
    </t:div>
    <t:div id="resultsList" >
        <ui:repeat var="d" value="#{retrieveConcepts.retrievalData.results}">
            <t:div styleClass="singleResult">
                <t:div styleClass="singleResultTitle">
                    <h:outputLink styleClass="singleResultName" value ="/kbmed-web-jsf/DocumentServlet" target="_blank">
                        <h:outputText value="#{d.documentName}"/>
                        <f:param name="docId" value="#{d.documentName}" />
                    </h:outputLink>
                    <h:outputText styleClass="singleResultSimilarity" value="Similarity: #{d.similarity}"/>
                </t:div> 
                <t:div >
                    <h:outputText styleClass="singleResultText" value="Document snnipet."/>
                </t:div>
            </t:div>
        </ui:repeat>
    </t:div>
</ui:composition>
